#coding=utf-8 
import scrapy


#from xueqiu.items import XueqiuItem
#import xueqiu.items

class XueqiuSpider(scrapy.Spider):
    name = "xueqiu"
    #start_urls = ["http://www.baidu.com"]
    start_urls = ["http://xueqiu.com"]
    
    def parse(self, response):
        #print response
        for sel in response.xpath('''//*[@id="container"]/div/div/div[3]/div/ul[2]/li'''):
            print sel.extract()
            print sel.xpath('a/text()').extract()[0]
            #print sel.xpath('''/li''').extract()

